package zjl.base;

public class SchedEntry {
    public final static boolean SEND = true;
    public final static boolean RECV = false;

    private BizRequest request;

    private int timepoint;
    private int duration;
    private String port;
    private boolean recvsend;

    public SchedEntry() {}

    public BizRequest getRequest() {
        return request;
    }

    public void setRequest(BizRequest request) {
        this.request = request;
    }

    public int getTimepoint() {
        return timepoint;
    }

    public void setTimepoint(int timepoint) {
        this.timepoint = timepoint;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public boolean isRecvsend() {
        return recvsend;
    }

    public void setRecvsend(boolean recvsend) {
        this.recvsend = recvsend;
    }

    @Override
    public String toString() {
        return "SchedEntry{" +
                "request=" + request +
                ", timepoint=" + timepoint +
                ", duration=" + duration +
                ", port='" + port + '\'' +
                ", recvsend=" + recvsend +
                '}';
    }
}
